﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Ex03.GarageLogic
{
    public class ValueOutOfRangeException : Exception
    {
        public float m_ValueAfterChange;
        public float m_MinValue;
        public float m_MaxValue;

        public float ValueAfterChange
        {
            get { return m_ValueAfterChange; }
        }

        public float MinValue
        {
            get { return m_MinValue; }
        }

        public float MaxValue
        {
            get { return m_MaxValue; }
        }

        public ValueOutOfRangeException(float i_ValueAfterChange, float i_MinValue, float i_MaxValue)
            : base("The value exceeds the maximal acceptable value.")
        {
            m_ValueAfterChange = i_ValueAfterChange;
            m_MinValue = i_MinValue;
            m_MaxValue = i_MaxValue;
        }
    }
}